package com.easy.project.domain.dto.builder;

import com.easy.project.base.validate.EnumValidate;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.time.LocalDate;
import java.time.LocalDateTime;
import java.util.Date;
import java.util.List;

/**
 * @author wxz
 */
@Data
@ApiModel("BuilderDTO")
public class BuilderDTO {

    @ApiModelProperty("作者")
    private String author;

    @ApiModelProperty("数据库连接url")
    @NotBlank(message = "数据库连接url 不能为空")
    private String url;

    @ApiModelProperty("数据库用户名")
    @NotBlank(message = "数据库用户名 不能为空")
    private String userName;

    @ApiModelProperty("数据库密码")
    @NotBlank(message = "数据库密码 不能为空")
    private String password;

    @ApiModelProperty("模块名")
    @NotBlank(message = "模块名 不能为空")
    private String moduleName;

    @ApiModelProperty("需要生成的表名")
    @NotEmpty(message = "需要生成的表名 不能为空")
    private List<String> tableNames;

    @ApiModelProperty("代码生成的本地路径")
    private String codePath;

    @ApiModelProperty("代码是否生成在项目内")
    private boolean codeInProject;

}
